package com.picture.pojo.dto;

import com.picture.pojo.entity.Picture;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@ApiModel("图片标记信息")
@Data
public class PictureDto {

    @ApiModelProperty("主键id")
    private Long pictureId;

    @ApiModelProperty("图片类型id")
    private Integer pictureCategoryId;

    @ApiModelProperty("图片相关描述")
    private String description;

    @ApiModelProperty("图片班级描述")
    private String aclass;

    @ApiModelProperty("标记坐标和类型信息")
    private List<PictureTagDto> pictureTagDtoList;

    // 无参构造方法
    public PictureDto() {
    }

    /**
     * 有参构造方法
     * @param pictureCoordinateDtoList 标记坐标和类型信息的集合
     */
    public PictureDto(List<PictureTagDto> pictureCoordinateDtoList) {
        this.pictureTagDtoList = pictureCoordinateDtoList;
    }

    /**
     * 有参构造方法
     * @param pictureId 图片资源id
     * @param description 图片描述信息
     * @param pictureTagDtoList 标记坐标和类型信息的集合
     */
    public PictureDto(long pictureId, String description,
                      List<PictureTagDto> pictureTagDtoList) {
        this.pictureId = pictureId;
        this.description = description;
        this.pictureTagDtoList = pictureTagDtoList;
    }



}
